﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework;
using UtopianGame;

namespace UtopianGame.graphics.menu
{
    class EndGameScreen : MenuScreen
    {
        public EndGameScreen(ContentManager cm, String newMessage) : base(cm, newMessage)
        {
            this.subObjectList.Clear();

            //Find where to draw the EndGameButton so that it is centered on
            //the menuScreen.
            int centerAlignmentNumber = 0;
            centerAlignmentNumber = boundingBox.X + (boundingBox.Width / 2);
            centerAlignmentNumber -= ((int)(GlobalDataHolder.baseFont.MeasureString("Close").X) / 2);
            addToSubObjectList(new EndGameButton(contentManager), centerAlignmentNumber, 500, 500);
        }
    }
}
